<?php


/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Cmspage
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */
 
 
?>

<ul class="cmspages_profile_tab">
  <?php foreach( $this->paginator as $item ): ?>
    <li>
	    <div class="cmspage_title">
	      <?php echo $this->htmlLink($item->getHref(), $item->getTitle()) ?>
				  <?php if( $item->featured ): ?>
				    <img src='application/modules/Cmspage/externals/images/featured.png' class='cmspage_title_icon_featured' />
				  <?php endif;?>
				  <?php if( $item->sticky ): ?>
				    <img src='application/modules/Cmspage/externals/images/sticky.png' class='cmspage_title_icon_sticky' />
				  <?php endif;?>
			</div>
      <?php if ($this->show_page_details): ?>
        <div class="cmspage_details">
				  <?php echo $this->timestamp(strtotime($item->creation_date)) ?>
	      </div>
        <div class="cmspage_description">
          <?php echo $this->viewMore($item->getDescription());?>
        </div>
	    <?php endif; ?>  
    </li>
  <?php endforeach; ?>
</ul> 

<div class="cmspages_profile_links">
	<?php echo $this->htmlLink($this->url(array('user' => Engine_Api::_()->core()->getSubject()->getIdentity()), 'cmspage_browse'), $this->translate("View %s's Pages", Engine_Api::_()->core()->getSubject()->getTitle()), array('class' => 'buttonlink item_icon_cmspage')) ?>
</div>


